<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>订单详情</title>
    <link rel="stylesheet" th:href="@{/static/css/minireset.css}" />
    <link rel="stylesheet" th:href="@{/static/css/common.css}" />
    <link rel="stylesheet" th:href="@{/static/css/cart.css}" />
    <script language="JavaScript" th:src="@{/static/script/cart.js}"></script>
</head>
<body>
<div class="header">
    <div class="w">
        <div class="header-left">
            <h1>我的订单详情</h1>
        </div>
        <div class="header-right">
            <h3>欢迎<span th:text="${session.loginuser.User_name}">张总</span>光临商城</h3>
            <div class="order"><a th:href="@{/order.do(operate='getOrderList')}">我的订单</a></div>
            <a th:href="@{/page.do?operate=page&page=login}" class="destory">注销</a>
            <div class="gohome">
                <a th:unless="${session.loginuser.role=1}" th:href="@{/order.do(operate='getOrderList')}">返回</a>
                <a th:if="${session.loginuser.role=1}" th:href="@{/Commodity.do?operate=seller}">返回</a>
            </div>
        </div>
    </div>
</div>
<div class="list">
    <div class="w">
        <table>
            <thead>
            <tr>
                <th>图片</th>
                <th>商品名称</th>
                <th>数量</th>
                <th>单价</th>
                <th>金额</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="orderItem : ${session.orderItemList}" th:object="${orderItem}">
                <td>
                    <img th:src="@{|/static/uploads/${orderItem.Commodity.Commodity_IMG}|}" alt="" />
                </td>
                <td th:text="${orderItem.commodity.commodity_name}">活着</td>
                <td   value="1" th:text="${orderItem.buycount}">
                </td>
                <td th:text="${orderItem.commodity.price}">36.8</td>
                <td th:text="${orderItem.money}">36.8</td>
            </tr>
            </tbody>
        </table>

    </div>
</div>
</body>
</html>
